﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />


<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>

</head>

<body class="ihg-theme-draft">

  <%@ include file="/WEB-INF/include/header.jsp"%>
  
  <div class="container-fluid ihg-container">
  
    <div class="ihg-content-layout" style="margin-top: 0">
      <div class="col-sm-12">
        <div class="panel panel-default ihg-panel">
          <div class="panel-heading">
              <span class="panel-titles text-info" style="font-size: 13px;font-weight: bold;">
                <i class="glyphicon glyphicon-list" style="top: 2px;"></i>&nbsp;&nbsp;
                All Peer Calibration Meetings
              </span>
          </div>
          <div class="panel-body" style="padding: 0px;">
            <table class="table table-striped ihg-table tab-pane" style="margin: 0px;">
              <thead>
                <tr>
                  <th>SESSION NAME</th>
                  <th>DATE</th>
                  <th>SUB GROUP</th>
                  <th>OPERATION</th>
                </tr>
              </thead>
              <tbody>
                <c:forEach var="sessionMeeting" items="${sessionMeetings}">
                  <tr>
                    <td>${sessionMeeting.session.name}</td>
                    <td><fmt:formatDate value="${sessionMeeting.startTime}" pattern="yyyy-MM-dd HH:mm"/>&nbsp;~&nbsp;<fmt:formatDate value="${sessionMeeting.endTime}" pattern="yyyy-MM-dd HH:mm"/></td>
                    <td>${sessionMeeting.subgroup}</td>
                    <td>
                      <c:choose>
                        <c:when test="${sessionMeeting.session.sessionStatus.active}">
                          <a href="${ctx.host}/sessions/${sessionMeeting.session.id}/peer-calibrations?subgroup=${sessionMeeting.subgroup}&formlink=true">VIEW</a>
                        </c:when>
                        <c:otherwise>-</c:otherwise>
                      </c:choose>
                    </td>
                  </tr>
                </c:forEach>
              </tbody>
            </table>
            
          </div>
        </div>
      </div>
    
    </div>
  </div>

  <%@ include file="/WEB-INF/include/footer.jsp"%>
  <%@ include file="/WEB-INF/include/script.jsp"%>

</body>
</html>